package hiWorld.amad.it;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class gpsTrack extends BroadcastReceiver {

	public static final String ACTION_REFRESH_GPS_COORDS = "it.amad.GPS_POLL";
		
	@Override
	public void onReceive(Context context, Intent intent) {
		// This method is invoked when the alarm is triggered
		
		//MainActivity.setCoords(0, 0);
	// 	MainActivity.updateCoords();
	
		Intent startIntent = new Intent(context, MainActivity.class);
		
		startIntent.setAction(ACTION_REFRESH_GPS_COORDS);
		
		context.startActivity(startIntent);
	}

}
